/* 
    Document   : form
    Created on : 11-dic-2009, 12.26.02
    Author     : luca
    Description:
        Purpose of the stylesheet follows.
*/

/* 
   TODO customize this sample style
   Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/


/* Queste classi stabiliscono lo stile delle tabelle dei form */
table.formSection {
    margin: 10px;
    margin-bottom: 20px;
}

table.formSection caption {
    text-align: left;
    color: #204a87;
    font-size: large;
    font-weight: bolder;
    background-color: inherit;
    margin-bottom: 10px;
    padding-bottom: 3px;
    border-bottom: 3px dotted;
}

table.formSection tr {
    margin-bottom: 5px;
    margin-top: 5px;
}
table.formSection td {
    padding-left: 3px;
    padding-right: 3px;
}

div.form {
    border: 2px solid #CC0000;
    padding: 15px;
    margin: 10px;
    max-width: 400px;
    display: block;
}

div.form span.button {
    float:right;
    clear:both;
}

/* Questi tag li inserisce automaticamente rails quando ci sono errori nei campi */
.fieldWithErrors {
  padding: 1px;
  background-color: red;
  display: table;
}

#errorExplanation {
  /*width: 400px;*/
  border: 2px solid red;
  padding: 7px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

#errorExplanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px;
  background-color: #c00;
  color: #fff;
}

#errorExplanation p {
  color: #333;
  margin-bottom: 0;
  padding: 5px;
}

#errorExplanation ul li {
  font-size: 12px;
  list-style: square;
}
